// .vitepress/sidebar.js
export const sidebar = {
  '/guide/': [
    {
      text: '指南',
      items: [
        { text: '介绍', link: '/guide/' },
        { text: '快速开始', link: '/guide/getting-started' },
        { text: '目录结构', link: '/guide/structure' },
        { text: '开发规范', link: '/guide/standards' },
        { text: '文档服务', link: '/guide/documentation' },
      ],
    },
  ],
  '/components/': [
    {
      text: '组件',
      items: [
        { text: '组件总览', link: '/components/' },
        { text: '通用组件', link: '/components/common' },
        { text: '业务组件', link: '/components/business' },
        { text: '使用示例', link: '/components/usage' },
      ],
    },
  ],
  '/api/': [
    {
      text: 'API接口',
      items: [
        { text: 'API概述', link: '/api/' },
        { text: '请求封装', link: '/api/request' },
        { text: 'AutoTableService', link: '/api/auto-table-service' },
        { text: 'autoQuery 查询构建', link: '/api/auto-query' },
        { text: 'API生成工具', link: '/api/openapi-ts-request' },
        { text: '最佳实践', link: '/api/best-practices' },
      ],
    },
    {
      text: '工具库',
      items: [
        { text: '工具函数库', link: '/api/utils' },
        { text: 'HTTP请求工具', link: '/api/http' },
        { text: 'Vue Hooks', link: '/api/hooks' },
        { text: '路由管理', link: '/api/router' },
        { text: '状态管理', link: '/api/store' },
        { text: '项目包', link: '/api/packages' },
      ],
    },
  ],
  '/config/': [
    {
      text: '配置',
      items: [
        { text: '配置概述', link: '/config/' },
        { text: '环境变量', link: '/config/env' },
        { text: 'Vite配置', link: '/config/vite' },
      ],
    },
  ],
};
